if ( SITECOOKIEPATH != COOKIEPATH ) { setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); } {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}